<div class="content-wrapper">

    <section class="content-header">
        <?php echo $this->partial('layout/breadcrumb'); ?>
        <h1 class="pull-right">
            <?php echo $this->HelpUrl('paymentList'); ?>
        </h1>
    </section>

    <section class="content">
        <?php echo $this->partial('layout/messages'); ?>

        <div class="row">
            <div class="col-xs-12">
                <div class="box shop-box">

                    <div class="box-body table-responsive no-padding">
                        <table class="table shop-table table-hover">
                            <thead>
                            <tr class="shop-bg-thead">
                                <th width="12%"><?php echo $this->translate('支付名称'); ?></th>
                                <th width="10%"><?php echo $this->translate('LOGO'); ?></th>
                                <th width="12%"><?php echo $this->translate('显示范围'); ?></th>
                                <th width="5%"><?php echo $this->translate('状态'); ?></th>
                                <th width="5%"><?php echo $this->translate('排序'); ?></th>
                                <th width="8%"><?php echo $this->translate('操作'); ?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if($this->payment) foreach ($this->payment as $value) { ?>
                                <tr>
                                    <td><?php echo $this->escapeHtml($value['paymentName']['content']); ?></td>
                                    <td><img src="<?php echo $this->basePath($value['paymentLogo']['content']); ?>"  style="border:1px solid #DDDDDD" /></td>
                                    <td><?php echo $this->adminHelper()->paymentShow(isset($value['paymentShow']['checked']) ? $value['paymentShow']['checked'] : ''); ?></td>
                                    <td><?php echo $this->adminHelper()->paymentState($value['paymentState']['checked']); ?></td>
                                    <td><?php echo $this->escapeHtml($value['paymentSort']['content']); ?></td>
                                    <td>
                                        <a href="<?php echo $this->url('payment',
                                            ['action'=>'edit', 'name'=>$value['editAction']]); ?>"
                                           class="btn btn-xs btn-success"><i class="fa fa-pencil"></i> <?php echo $this->translate('编辑'); ?></a>
                                    </td>
                                </tr>
                            <?php } ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

    </section>
</div>